package com.lin.service;

import com.lin.dao.CommentaryMapper;
import com.lin.pojo.Commentary;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName CommentaryServiceImpl
 * @Description 评论功能的逻辑处理
 * @Author LinZePeng
 * @Date 2021/5/3 11:36
 * @Version 1.0
 */
@Service
public class CommentaryServiceImpl implements CommentaryService {

	@Autowired
	private CommentaryMapper commentaryMapper;

	/**
	 * @Description 功能实现（查询所有评论）
	 * @Param []
	 * @return java.util.List<com.lin.pojo.Commentary>
	 */
	@Override
	public List<Commentary> queryCommentary() {
		return commentaryMapper.queryCommentary();
	}
}
